﻿package morn.core.components
{

    public class LinkButton extends Button
    {

        public function LinkButton(param1:String = "")
        {
            super(null, param1);
            return;
        }// end function

        override protected function preinitialize() : void
        {
            super.preinitialize();
            _labelColors = Styles.linkLabelColors;
            _autoSize = false;
            buttonMode = true;
            return;
        }// end function

        override protected function initialize() : void
        {
            super.initialize();
            _btnLabel.underline = true;
            _btnLabel.autoSize = "left";
            return;
        }// end function

        public function set underLine(param1:Boolean) : void
        {
            _btnLabel.underline = param1;
            return;
        }// end function

        override protected function changeLabelSize() : void
        {
            return;
        }// end function

    }
}
